package cn.cxq.learning.e2_2and3;

public class Client {

    public static void main(String[] args) {

        double[] A = {12, 3, 5, 8};//系数
        double x = 2;//底数

        System.out.println(HornerScheme.polyValue(2, A, A.length - 1));//秦九韶算法结果
        System.out.println(TermByTermSummation.polyValue(2, A, A.length - 1));//逐项求和发结果
    }
}
